﻿namespace Wolfpack.Contrib.Checks.EventLogParser
{
    using System;
    using System.Collections.Generic;
    using System.Diagnostics;
    using System.IO;
    using Wolfpack.Core;
    using Wolfpack.Core.Interfaces;
    using Wolfpack.Core.Interfaces.Entities;
    public static class CustomCompare
    {
        /// <summary>
        /// less than zero is earlier
        /// zero is equal to
        /// 1 is later
        /// </summary>
        [DebuggerStepThrough]
        public static DateTime TrimMilliseconds(this DateTime dt)
        {
            return new DateTime(dt.Year, dt.Month, dt.Day, dt.Hour, dt.Minute, dt.Second, 0);
        }
    }
}